package ru.pb.global.network;

public class MacAddr
{
	private byte ad1, ad2, ad3, ad4, ad5, ad6;

	public MacAddr(byte[] mac)
	{
		ad1 = (byte) (mac[5] & 0xFF);
		ad2 = (byte) (mac[4] & 0xFF);
		ad3 = (byte) (mac[3] & 0xFF);
		ad4 = (byte) (mac[2] & 0xFF);
		ad5 = (byte) (mac[1] & 0xFF);
		ad6 = (byte) (mac[0] & 0xFF);
	}

	@Override
	public String toString()
	{
		return "MacAddress [" + ad1 + ":" + ad2 + ":" + ad3 + ":" + ad4 + ":" + ad5 + ":" + ad6 + "]";
	}
}